package com.huabo.contract.service;



import com.hbfk.util.JsonBean;
import com.huabo.contract.oracle.entity.TblOrganization;
import com.huabo.contract.util.Tree;

import java.math.BigDecimal;
import java.util.List;


public interface TblOrganizaService {

	Integer findCountByUserSjb(BigDecimal staffid);

	List<Tree> getTree(BigDecimal nodeId);

	List<Tree> getNodeAll(BigDecimal nodeId);

    BigDecimal findById(String pid);

    String findOrgByAllGSJT(String token, String staffId);

	String findOrgByAllJT(String orgid);

	String findOrgByAll(String orgid);

	List<Tree> getTrees(BigDecimal nodeId);

	List<Tree> getNodeAlls(BigDecimal nodeId);

    void saveToz(TblOrganization toz);

    void updateToz(TblOrganization toz);
    
    
    //==
    JsonBean getOrgTreeListByAuditObj(String token, BigDecimal nodeId) throws Exception;
    
    

	public TblOrganization findByOrgid(String orgid);
    
	/**
	 * 
	 * @param orgId
	 * @return
	 */
	public TblOrganization findByHistoryId(String historyId);
	/**
	 * 
	 * @param orgId
	 * @return
	 */
	public TblOrganization findByOrgNumber(String orgnumber);
 	/**
 	 * 获取所有冶金的组织，
 	 * @return
 	 */
 	public List<TblOrganization> findListWheBt();

	JsonBean findOrgDeptTree(String token) throws Exception;
}
